var express = require('express');
var router = express.Router();
var dataCtrl = require("../controller/commits.controller");

router.post("/data",dataCtrl.create);
router.get("/data/:id",dataCtrl.get);
router.post("/data/:id",dataCtrl.update);
router.delete("/data/:id",dataCtrl.remove);
router.post("/list",dataCtrl.list);
router.post("/listOne",dataCtrl.listOne);
router.post("/removes",dataCtrl.removes);
router.post("/delCateId",dataCtrl.delCateId);
router.post("/delNewsId",dataCtrl.delNewsId);
module.exports = router;
